import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

import static sun.text.normalizer.UTF16.charAt;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/18
 * Time: 15:18
 * Description: No Description
 */
class cmp implements Comparator<int []> {


    @Override
    public int compare(int[] o1, int[] o2) {
        return o1[2] - o2[2];
    }
}
public class Main {
    public static void main(String[] args) {
        String str = "abababab";
        String[] ret = str.split("b");
        for (String str1: ret) {
            System.out.println(str1);
        }
    }
    public static void main6(String[] args) {
        String str = "ababababaabaababa";
        String str1 = str.replaceFirst("a", "d");
        System.out.println(str1);
    }
    public static void main4(String[] args) {
        String s1 = "hello";
        String s2 = "hello";
        char[] s3 = {'h','e','l','l','o'};
        int a = 10;
        Integer ret= Integer.valueOf("123");
        Scanner scanner = new Scanner(System.in);
        String s5 = scanner.nextLine();
        int c = Integer.parseInt(s5,8);
        System.out.println(c);
        System.out.println(ret);
    }
    public static void main3(String[] args) {
        String s1 = "hello";
        String s2 = "hello";
        char[] s3 = {'h','e','l','l','o'};
        String s4 = String.valueOf(s3);

        char a= 'a';
         char a1 =s1.charAt(3);
         int ch = s1.indexOf("ll",4);
        System.out.println(a1);
        System.out.println(ch);
    }
    public static void main2(String[] args) {
        String s1 = "hello";
        String s2 = "hello";
        int[] arrays ={1,2,3,5,6,7};
        int[] arrays1 = {1,2,4,5,6,7};
        cmp Cmp = new cmp();
        System.out.println(Arrays.equals(arrays,arrays1));
        System.out.println(s1.compareTo(s2));
    }
    public static void main1(String[] args) {
        String s1 = "hello";
        String s2 = new String("hello");
        char[] s3 = {'h','e','l','l','o'};
        String s4 = new String(s3);
        String s5 = s1+s2;
        byte s6 = (byte)128;
        System.out.println(s6);
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(Arrays.toString(s3));
        System.out.println(s4);
        System.out.println(s5);
    }

}